package com.weitu.occupationalHealth.occDiseases.service.impl;

import com.weitu.occupationalHealth.occDiseases.entity.OccDiseases;
import com.weitu.occupationalHealth.occDiseases.mapper.OccDiseasesMapper;
import com.weitu.occupationalHealth.occDiseases.service.OccDiseasesService;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OccDiseasesServiceImpl implements OccDiseasesService {
    @Autowired
    private OccDiseasesMapper occDiseasesMapper;

    @Override
    public Map selectById(String id) {
        return this.occDiseasesMapper.selectById(id);
    }

    @Override
    public int deleteById(String id) {
        return this.occDiseasesMapper.deleteById(id);
    }

    @Override
    public int updateByIdSelective(Map record) {
        return this.occDiseasesMapper.updateByIdSelective(record);
    }

    @Override
    public int insertSelective(Map record) {
        return this.occDiseasesMapper.insertSelective(record);
    }

    @Override
    public List<Map> selectAllOccDis(Map map) {
        return this.occDiseasesMapper.selectAllOccDis(map);
    }

    @Override
    public int selectAllOccDisCount(Map map) {
        return this.occDiseasesMapper.selectAllOccDisCount(map);
    }

    @Override
    public OccDiseases selectByCode(String diseasesCode) {
        return this.occDiseasesMapper.selectByCode(diseasesCode);
    }
}